const validate = {
	isNull(str: string = ''){
		return !/\S+/.test(str)
	},
	isPhone(phone: string = ''){
		return /^1[3456789]\d{9}$/.test(phone)
	},
	isEmail(email: string = ''){
		return /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/.test(email);
	}
}

export default validate